package com.gexin.common.log;

import org.apache.log4j.Priority;
import org.apache.log4j.RollingFileAppender;

/**
 * @author deming
 * @Title: GexinLogAppender
 * @ProjectName maven-web-wmb
 * @Description: 这个配置可以安装天来分割日志
 * @date 2019/11/710:12
 */
public class GexinRollingFileAppender extends RollingFileAppender {
	@Override
	public boolean isAsSevereAsThreshold(Priority priority) {
		//只判断是否相等，而不判断优先级
		return this.getThreshold().equals(priority);
	}
}
